package pms.common.value;

import java.util.Date;

import pms.common.utils.DateUtil;
import pms.common.utils.SessionUtil;

public class ProgressValue {
	private int pgsTargetId;
	private int pgsId;
	private int pgsValue;
	private String pgsInfo;
	private int pgsUserId;
	private String pgsTs;
	private int mode;
	public int getCurrentUserId() {
		return SessionUtil.getUserId();
	}
	public String getCurrentDate() {
		return DateUtil.toYYYYMMDD(new Date());
	}
	public int getPgsTargetId() {
		return pgsTargetId;
	}
	public void setPgsTargetId(int pgsTargetId) {
		this.pgsTargetId = pgsTargetId;
	}
	public int getPgsId() {
		return pgsId;
	}
	public void setPgsId(int pgsId) {
		this.pgsId = pgsId;
	}
	public int getPgsValue() {
		return pgsValue;
	}
	public void setPgsValue(int pgsValue) {
		this.pgsValue = pgsValue;
	}
	public String getPgsInfo() {
		if(pgsInfo == null || pgsInfo.equals("")) {
			return "未記入";
		}
		return pgsInfo;
	}
	public void setPgsInfo(String pgsInfo) {
		this.pgsInfo = pgsInfo;
	}
	public int getPgsUserId() {
		return pgsUserId;
	}
	public void setPgsUserId(int pgsUserId) {
		this.pgsUserId = pgsUserId;
	}
	public String getPgsTs() {
		return pgsTs;
	}
	public void setPgsTs(String pgsTs) {
		this.pgsTs = pgsTs;
	}
	public int getMode() {
		return mode;
	}
	public void setMode(int mode) {
		this.mode = mode;
	}
	
	
}
